<?php
require_once 'pojos/Cookie.php';
require_once 'pojos/CookieType.php';
require_once 'model/CookieDao.php';
require_once 'model/CookieTypeDao.php';

if (isset($_GET['add'])) {
    $cookieType = new CookieType();
    $cookieType->setTypeName($_GET['typeName']);
    $cookieType->setTypeImage($_GET['typeImage']);
    $cookieTypeDao = new CookieTypeDao();
    $cookieTypeDao->addCookieType($cookieType);
}


$page_title = 'Thêm loại bánh';
$menu = 'page_content/menu.php';
$menubottom = 'page_content/bottomMenu.php';
$page_content = 'page_content/themloaibanh_content.php';
include ('MasterPage.php');
?>
